import { defineConfig, type UserConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

interface IUserConfig extends UserConfig {
  nuvaModules: {
    name: string;
  }[];
}

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  nuvaModules: [
    {
      name: '@ruan-lib/ruan-vite-framework',
    },
  ],
  resolve: {
    alias: {
      '@': '/src',
    },
  },
} as IUserConfig);
